//
//  PTLoadingView.h
//  PlanTech
//
//  Created by ruifeng song on 2018/6/19.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PTAnimationIndicator.h"

@interface PTLoadingView : UIView

@property(nonatomic,weak)PTAnimationIndicator *animationIndicator;

+(PTLoadingView *)loadingView;

/**
 * 加载并开始动画，默认将视图PTLoadingView 加载在window上.
 */
+(PTLoadingView *)loadingViewAndStartAnimation;

/**
 * 加载并开始动画，默认将PTLoadingView视图加载在window上.
 *
 * @param frame  frame
 *
 * @param title  显示的标题(加载中...)
 */
+(PTLoadingView *)loadingViewAndStartAnimationWithFrame:(CGRect)frame title:(NSString *)title;

/**
 *
 * @param  frame  frame
 *
 * @param title 显示的标题 (加载中...)
 *
 * @param view   loadingView 父视图
 */
+(PTLoadingView *)loadingViewAndStartAnimationWithFrame:(CGRect)frame title:(NSString *)title InView:(UIView *)view;

@end




















